import request from '@/utils/request';

const prefix = '/system';

export const getSyetemList = (data) => {
  return request.get(`${prefix}`, {
    params: data,
  });
};

export const createSyetem = (data) => {
  return request.post(`${prefix}`, data);
};

export const deleteSyetem = (id) => request.delete(`${prefix}/${id}`);
export const getSyetemDetail = (id) => request.get(`${prefix}/${id}`);
export const updateSyetem = (id, data) => request.put(`${prefix}/${id}`, data);
